import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from "axios";

Vue.config.productionTip = false



import Vant from 'vant';
// import 'vant/lib/index.css';
// 引入全部样式
import 'vant/lib/index.less';
Vue.use(Vant);


axios.default.timeout=50000
//在main.js中绑定页面刷新事件
// window.addEventListener('beforeunload',() => {
//   window.detail.setItem('store', JSON.stringify(this.$store.state))
// })



new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
